package com.hccl.mongoEntities;

import org.bson.types.ObjectId;
import org.mongodb.morphia.annotations.Embedded;
import org.mongodb.morphia.annotations.Reference;

@Embedded
public class RuleEntryEntity {

    protected String entryId;
    protected boolean dispensable;
    protected int type=0;//0是语义槽，1是语义要素变量
    protected String name;//sj

    public RuleEntryEntity(String entry, boolean dispensable,int type) {
        this.entryId = entry;
        this.dispensable = dispensable;
        this.type=type;
    }

    public RuleEntryEntity() {
        super();
    }

    public String getEntry() {
        return entryId;
    }

    public void setEntry(String entry) {
        this.entryId = entry;
    }

    public int getType(){return type;}

    public String getName() {return name;}

    public void setType(int type){this.type=type;}

    public boolean isDispensable() {
        return dispensable;
    }

    public void setDispensable(boolean dispensable) {
        this.dispensable = dispensable;
    }

    public void setName(String name) {this.name = name;}

}
